<template>
    <Demo @hello="showHelloMsg" msg="hello" :school=tsinghua>
        <template v-slot:qwq1>
            <span>插槽qwq1</span>
        </template>
        <template v-slot:qwq2>
            <span>插槽qwq2</span>
        </template>
    </Demo>
</template>

<script lang="ts">
import { reactive } from 'vue'
import Demo from './components/Demo.vue'
export default {
    name: 'setup_detail',
    components: {
        Demo
    },
    setup() {

        let tsinghua = reactive({
            name:"清华大学",
            address:"北京"
        })

        function showHelloMsg(value) {
            alert(`触发hello事件，收到的参数为：${value}`)

        }
        return {
            showHelloMsg,
            tsinghua
        }

    }


} 
</script>
<style></style>